package com.tjmc.tiomsresource.service.impl;

import com.tjmc.tiomscore.dao.TranPtnHwTpbMapper;
import com.tjmc.tiomscore.model.TranPtnHwTpb;
import com.tjmc.tiomsresource.parser.CMTpbParser;
import com.tjmc.tiomsresource.service.CMTpbService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.File;
import java.util.List;

/**
 * @author Luc
 * @version 1.0
 * @date 2020-05-20 15:41
 */
@Service("cmTpbService")
public class CMTpbServiceImpl extends CMSuperServiceImpl<TranPtnHwTpb> implements CMTpbService {

    @Autowired
    private CMTpbParser cmTpbParser;
    @Autowired
    private TranPtnHwTpbMapper tranPtnHwTpbMapper;

    @Override
    public CMTpbParser getParser() {
        return cmTpbParser;
    }

    @Override
    public TranPtnHwTpbMapper getMapper() {
        return tranPtnHwTpbMapper;
    }

    @Override
    public boolean saveTranPtnHwDataToDB(List<File> xmlFiles) {
        return this.saveTranPtnHwDataToDB(xmlFiles, "TPB");
    }
}
